<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:j4j="http://javascript4jsf.dev.java.net/"
	template="../include/template.xhtml">
	
	<ui:define name="pageTitle">
		<h:outputText value="#{userDatailAction.user.nickName}" />
	</ui:define>
	<ui:define name="logoTitle">
		<h:outputText value="人才" />
	</ui:define>	
	
	<ui:define name="content">

		<style type="text/css">
<!--
.inputClass {
	border: 1px solid #6699CC;
	width: 300px;
	margin-left: 4px;
}
-->
</style>
		<br />
		<rich:spacer width="10px" />
		<h:outputText style="font-weight: bold;" value="相关信息"></h:outputText>
		<rich:panel style="border:0;">
			<h:panelGrid columns="2" style="width:60%;text-align:left;">
				<h:outputLabel value="昵称:" for="nickName" />
				<h:outputText id="nickName"
					value="#{userDatailAction.user.nickName}" />
				<h:outputLabel value="性别:" for="gender" />
				<h:outputText id="gender" value="#{userDatailAction.user.gender}" />
				<h:outputLabel value="地址:" for="address" />
				<h:outputText id="address" value="#{userDatailAction.user.address}" />
				<h:outputLabel value="Email:" for="email" />
				<h:outputText id="email" value="#{userDatailAction.user.email}" />
				<h:outputLabel value="QQ/MSN	:" for="qq" />
				<h:outputText id="qq" value="#{userDatailAction.user.qq}" />
				<h:outputLabel value="特长:" for="specialty" />
				<h:outputText id="specialty"
					value="#{userDatailAction.user.specialty}" />
			</h:panelGrid>
			
			<h:form id="actionForm">
				<s:div rendered="false" binding="#{userDatailAction.htmlDiv}">
					<h:inputTextarea value="#{message.content}" class="inputClass" />
					<a:commandButton value="发送"
						action="#{userDatailAction.sendMessage(message)}"
						reRender="actionForm"></a:commandButton>
				</s:div>
				<a:commandButton value="给#{userDatailAction.user.nickName}发消息"
					reRender="actionForm"
					action="#{userDatailAction.preparedSendMessage()}" />
				<rich:spacer width="10px"></rich:spacer>
				<a:commandButton value="加为好友" />
			</h:form>
			
		</rich:panel>
			
	</ui:define>
</ui:composition>
